package com.jic.market.impl.allocation;

import com.jic.market.api.after.AllocationApi;
import com.jic.market.request.after.TellAddAllocationRequest;
import com.jic.market.service.allocation.AllocationLogicService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author xuyongliang
 * @version V1.0
 * @className AllocationLogicServiceImpl
 * @description TODO
 * @date 2020/3/16
 */
@Service
public class AllocationLogicServiceImpl implements AllocationLogicService{

    @Resource
    private PromotionAddAllocationStrategyContext strategyContext;

    /**
     * 添加分摊信息
     * @param tellRequest
     * @return
     */
    @Override
    public Long addAllocation(TellAddAllocationRequest tellRequest) {
        return  strategyContext.addAllocation(tellRequest);
    }
}
